package cn.cque.service;

import cn.cque.entity.Category;
import cn.cque.entity.PageResult;
import cn.cque.entity.Product;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @author: XWC
 * @ClassName: ProductService
 * @Date: 2020/10/4
 * @Time: 18:37
 * @Description:
 */
public interface ProductService {
    List<Product> findHot();
    List<Product> findNew();
    Product findById(String id);
    PageResult<Product> findByCid(String cid, Integer currentPage, Integer pageSize);
    List<Product> findAll();

    Integer addProduct(Product product);

    Integer deleteProduct(String id);

    Integer updateProduct(Product product);
}